package com.wzh.design.decoratorMode;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/18 11:09
 */
public class Demo {

    public static void main(String[] args) {

        NormalMan man = new NormalMan("张三");

        Man carDecorator = new CarDecoratorImpl(man);
        Man houseDecorator = new HouseDecoratorImpl(carDecorator);
        Man depositDecorator = new DepositDecoratorImpl(houseDecorator);
        depositDecorator.getManDesc();

    }
}
